package com.tom.demo.common.enums;

import lombok.Getter;

/**
 * redis发布订阅的主题
 */
@Getter
public enum RedisTopicEnum {

    SUB_KEY_TOPIC_ONE("oneTopic","我的第一个主题"),

    SUB_KEY_TOPIC_TWO("twoTopic","我们第二个主题"),

    SUB_KEY_TOPIC_THREE("threeTopic","我们第三个主题");

    private final String topic;

    private final String description;

    RedisTopicEnum(String topic, String description) {
        this.topic = topic;
        this.description = description;
    }
}
